#include "Tester.h"

#ifdef __CONFIGTESTER__ON

#include <Support\Log.h>
#include <Support\Config.h>

TEST(Config, InitAndShutdown)
{
	gLogger.initialize();

	gConfig.shutdown();

	gConfig.initialize(NULL);
	std::string configurationoptions("a lot of configurations\n");
	gConfig.getConfigureOptions(configurationoptions);
	gLog(configurationoptions.c_str());
	gConfig.shutdown(); 

	static const char* configfile = "managementfiles\\physicalmemory.txt";
	gConfig.initialize(configfile);
	std::string configurationoptions2("a lot of configurations from a file\n");
	gConfig.getConfigureOptions(configurationoptions2);
	gLog(configurationoptions2.c_str());
	gConfig.shutdown();

	gLogger.shutdown();
}
#endif